﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace ChoViet.Lib.Helpers
{
    public static class LinkHelper
    {
        public static string Image(this UrlHelper helper, string fileName)
        {
            return helper.Content("~/Images/" + fileName);
        }
        public static string Stylesheet(this UrlHelper helper, string fileName)
        {
            return helper.Content("~/Content/" + fileName);
        }
        public static string Script(this UrlHelper helper, string fileName)
        {
            return helper.Content("~/Scripts/" + fileName);
        }
        public static string Link(this UrlHelper helper, string link)
        {
            return helper.Content("~" + link);
        }
    }
}
